package com.webware.one.shared.dto;

@SuppressWarnings("serial")
public class UserDto extends EntityDto {

  private String login;

  private Boolean adminRole;
  private Boolean stuff;
  private Boolean guest;
  private String email;

  private String fio;

  private String position;

  private Long photoId = null;

  public UserDto() {
    this(false);
  }

  public UserDto(Boolean guest) {
    this(null, null, null, null, null, null, false, guest, false);
  }

  public UserDto(Long id, String login, String fio, String position, String email, Long photoId,
      Boolean adminRole, Boolean guest, Boolean stuff) {
    super(id);
    this.login = login;
    this.fio = fio;
    this.position = position;
    this.email = email;
    this.adminRole = adminRole;
    this.photoId = photoId;
    this.guest = guest;
    this.stuff = stuff;
  }

  public String getLogin() {
    return login;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public String getFio() {
    return fio;
  }

  public void setFio(String fio) {
    this.fio = fio;
  }

  public String getPosition() {
    return position;
  }

  public void setPosition(String position) {
    this.position = position;
  }

  public Boolean isAdminRole() {
    return adminRole;
  }

  public Long getPhotoId() {
    return photoId;
  }

  public void setPhotoId(Long photoId) {
    this.photoId = photoId;
  }

  public Boolean isGuest() {
    return guest;
  }

  public void setGuest(Boolean guest) {
    this.guest = guest;
  }

  public Boolean isStuff() {
    return stuff;
  }

  public void setStuff(Boolean stuff) {
    this.stuff = stuff;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  @Override
  public String toString() {
    return getId() + " " + getFio();
  }
}
